package com.auz.datagenerator.guiconnector;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JPanel;

public abstract class AbstractPreviewOptionPanel extends JPanel implements ActionListener {

	protected JFrame controlledFrame;
	protected JCheckBox option;
	
	public AbstractPreviewOptionPanel() {
		
	}
	
	/**
	 * Action listener
	 */
	public void actionPerformed(ActionEvent _arg0) {
		if(_arg0.getSource() == option) {
			controlledFrame.setVisible(option.isSelected());
		}
	}
	
	public void addValue(Object _value) {
		System.out.println("Here @ 0");
	}
}
